package cn.lizemin.demo.thread.privileage;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class Test {
    static class Inner2{
        public void a(){
            System.out.println("public");
        }
        protected void b(){
            System.out.println("protected");
        }
        void c(){
            System.out.println("default");
        }
        private void d(){

            System.out.println("private");
        }


    }
    private void eat(){
        System.out.println("public class,  private method");
    }

    void jump(){
        System.out.println("public class,  default method");
    }

    public void sleeping(){
        System.out.println("public class,  public method");
    }

    protected void swim(){
        System.out.println("public class,  protected method");
    }

}
class Test2{
    private void play(){
        System.out.println("default class,  private method");
    }

    void jump(){
        System.out.println("default class,  default method");
    }

    public void sleeping(){
        System.out.println("default class,  public method");
    }

    protected void swim(){
        System.out.println("default class,  protected method");
    }



}
